package jpb.command;

import jpb.CommandArg;
import jpb.StartupCommandSelector;

/**
 * A simple selector that assumes that the Java command is on the OS path. It does not validate this assumption.
 *
 * @author Dariusz Kordonski
 */
public final class OsPathSelector implements StartupCommandSelector {

    private static final CommandArg JAVA_COMMAND = CommandArg.of("java");

    /**
     * {@inheritDoc}
     *
     */
    @Override
    public CommandArg command() {
        return JAVA_COMMAND;
    }
}
